import request from '@/utils/request'

// 查询预印报列表
export function listPreprinting(query) {
  return request({
    url: '/mes/fb/preprinting/list',
    method: 'get',
    params: query
  })
}

// 查询预印报详细
export function getPreprinting(recordId) {
  return request({
    url: '/mes/fb/preprinting/' + recordId,
    method: 'get'
  })
}

// 新增预印报
export function addPreprinting(data) {
  return request({
    url: '/mes/fb/preprinting',
    method: 'post',
    data: data
  })
}

// 修改预印报
export function updatePreprinting(data) {
  return request({
    url: '/mes/fb/preprinting',
    method: 'put',
    data: data
  })
}

// 删除预印报
export function delPreprinting(recordId) {
  return request({
    url: '/mes/fb/preprinting/' + recordId,
    method: 'delete'
  })
}
